package net.wendal.base.util;

import java.util.Collections;
import java.util.SortedSet;
import java.util.TreeSet;

/**
 * Created by y on 2017/2/9.
 */
public class SortedSetDemo {

    public static void main(String[] args) {
        SortedSet<String> sortedSet = new TreeSet<String>(); //按对象的比较函数对元素排序
        Collections.addAll(sortedSet, "one two three".split(" "));
        System.out.println(sortedSet);


    }
}
